PeachDrawing.PDF.PdfOperation

PdfOperation.LoadBytes(byte[], string) Method

Opens a PDF held in memory.

public static PeachDrawing.PDF.PdfOperation LoadBytes(byte[] pdf, string? password=null);

Parameters

pdf System.Byte[]

the bytes of the file

password System.String

the password, or null if the file needs none

Returns

PdfOperation
an operation whose pages are those of the file

Exceptions

PdfPasswordException
the password is missing or wrong